home *** CD-ROM | disk | FTP | other *** search
- ;$VER: RC5 Control 1.6.1 - v2.8010-463 compliant (16.09.2000)
- ;Copyright © 1999-2000 Daniel Pimley
-
- FailAt 21
- Lab restart
-
- If EXISTS ENV:RC5PPC
-
- If NOT EXISTS $RC5PPC
- RequestChoice >NIL: "RC5 Control" "Bad options for PPC client" "Quit"
- skip quit
- EndIf
-
- If EXISTS ENV:PPC
- Lab notquit
- Status >ENV:PPC COMMAND=$RC5PPC
- Break >NIL: PROCESS $PPC
- If WARN
- ; pulls final (#?.#?% done) from logfile and writes to $message
- rx "Parse ARG LOGFILE; If Open(RC5log,LOGFILE,'r') Then; Do; newmess='log unreadable.'; Do until EOF(RC5log); mess=ReadLn(RC5log); If Pos('Saved',mess)>0 THEN; newmess=mess; If Pos('Shutdown',mess)>0 THEN; newmess=mess; End; Close(RC5log); If newmess~='log unreadable.' THEN; PARSE VAR newmess '] ' newmess; End; Else newmess='statistics unavailable.'; Open(RC5msg,'ENV:message','w'); WriteLn(RC5msg,'*n'||newmess); Close(RC5msg)" $PPCLOG
- RequestChoice >NIL: "RC5 Control" "PPC client shutdown:$message" "OK"
- UnSetENV PPC
- Else
- Wait 3
- skip notquit BACK
- EndIf
- Else
- Run >NIL: $RC5PPC
- Status >ENV:PPC COMMAND=$RC5PPC
- RequestChoice >NIL: "RC5 Control" "PPC client installed" "OK"
- EndIf
-
- Else
-
- RequestFile >ENV:RC5PPC DRAWER="SYS:" FILE="dnetc_PPC" TITLE="Select PPC Client" NOICONS
- RequestFile >ENV:PPCLOG DRAWER="SYS:" FILE="dnetc_PPC.log" TITLE="Select PPC Logfile" NOICONS
-
- Which >NIL: $RC5PPC
- If WARN
- UnsetENV RC5PPC
- RequestChoice >NIL: "RC5 Control" "Invalid selection" "Quit"
- skip quit
- Else
- ; strips path data to match client process name and enable a status call
- rx "Parse ARG CLIENT; CLIENT=Translate(CLIENT,'','""'); gofrom=LastPos('/',CLIENT); If gofrom>0 THEN; newmess=SubStr(CLIENT,gofrom+1); Else; Do; gofrom=LastPos(':',CLIENT); If gofrom>0 THEN; newmess=SubStr(CLIENT,gofrom+1); Else; newmess=CLIENT; End; Open(RC5cli,'ENV:RC5PPC','w'); WriteLn(RC5cli, '""'||newmess||'""'); Close(RC5cli)" $RC5PPC
- Copy >NIL: ENV:RC5PPC ENVARC:
- Copy >NIL: ENV:PPCLOG ENVARC:
- EndIf
-
- Skip restart BACK
-
- EndIf
-
- Lab quit